package com.itkaien.AopAnno;


import com.itkaien.AopAnno.impl.UserServiceImplAnno;
import com.itkaien.AopAnno.service.UserServiceAnno;
import com.itkaien.SpringssmApplication;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestDemoAnno {

    @Test
    public void test() {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(SpringssmApplication.class);

        UserServiceAnno userService = (UserServiceAnno) annotationConfigApplicationContext.getBean("userServiceImplAnno");

        userService.show();
    }

}
